/**
 * 
 */
package net.altbb.lookup;

import net.rim.device.api.ui.UiApplication;
import net.rim.device.api.ui.container.MainScreen;
import net.rim.device.api.ui.component.*;
import net.rim.device.api.system.*;

/**
 * @author rory
 *
 */
public class NetworkIdLookup extends UiApplication {
	
	public NetworkIdLookup() {
		IdScreen screen = new IdScreen();
		pushScreen(screen);
	}
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		NetworkIdLookup lookup = new NetworkIdLookup();
		lookup.enterEventDispatcher();
	}
	
	private static class IdScreen extends MainScreen {
		public IdScreen() {
			int networkId = RadioInfo.getNetworkId(RadioInfo.getCurrentNetworkIndex());
			LabelField field = new LabelField(networkId);
			add(field);
		}
	}
}
